package com.wangsh.splider.system.pojo;

import java.util.Date;
import java.util.Map;
import java.util.TreeMap;

import com.wangsh.splider.common.pojo.BasePojo;

public class ASysMailAccount extends BasePojo<ASysMailAccount>
{
	private int id;
	private String userName;
	private String password;
	private String host;
	private int totalNum;
	private int succedNum;
	private int failedNum;
	private int todayTotalNum;
	private int todaySuccedNum;
	private int todayFailedNum;
	private String content;
	private byte status;
	private Date createTime;
	private Date updateTime;
	private Date pubTime;
	private Date sendTime;
	
	
	
	/*--字符串表示--*/
	private String statusStr ; 
	/* 存储所有状态的容器 */
	private Map<String,String> enumsMap = new TreeMap<String, String>();

	public Map<String, String> getEnumsMap()
	{
		// 根据状态值获取字符串描述
		ASysCountryEnum[] syscountryEnums = ASysCountryEnum.values();
		for (int i = 0; i < syscountryEnums.length; i++)
		{
			ASysCountryEnum syscountryEnum = syscountryEnums[i];
			String key = syscountryEnum.toString() ; 
			if(key.lastIndexOf("_") != -1)
			{
				key = key.substring(0,key.lastIndexOf("_")) ; 
			}
			enumsMap.put(key + "-" + syscountryEnum.getStatus() + "", syscountryEnum.getName());
		}
		return enumsMap;
	}
	
	public String getStatusStr()
	{
		// 根据状态值获取字符串描述
		ASysCountryEnum[] syscountryEnums = ASysCountryEnum.values();
		for (int i = 0; i < syscountryEnums.length; i++)
		{
			ASysCountryEnum syscountryEnum = syscountryEnums[i];
			if (syscountryEnum.toString().startsWith("STATUS_"))
			{
				// 表示是状态的标识
				if (syscountryEnum.getStatus() == this.getStatus())
				{
					this.statusStr = syscountryEnum.getName();
					break;
				}
			}
		}
		return statusStr;
	}
	
	
	
	
	
	public int getId()
	{
		return id;
	}
	public void setId(int id)
	{
		this.id = id;
	}
	public String getUserName()
	{
		return userName;
	}
	public void setUserName(String userName)
	{
		this.userName = userName;
	}
	public String getPassword()
	{
		return password;
	}
	public void setPassword(String password)
	{
		this.password = password;
	}
	public String getHost()
	{
		return host;
	}
	public void setHost(String host)
	{
		this.host = host;
	}
	public int getTotalNum()
	{
		return totalNum;
	}
	public void setTotalNum(int totalNum)
	{
		this.totalNum = totalNum;
	}
	public int getSuccedNum()
	{
		return succedNum;
	}
	public void setSuccedNum(int succedNum)
	{
		this.succedNum = succedNum;
	}
	public int getFailedNum()
	{
		return failedNum;
	}
	public void setFailedNum(int failedNum)
	{
		this.failedNum = failedNum;
	}
	public int getTodayTotalNum()
	{
		return todayTotalNum;
	}
	public void setTodayTotalNum(int todayTotalNum)
	{
		this.todayTotalNum = todayTotalNum;
	}
	public int getTodaySuccedNum()
	{
		return todaySuccedNum;
	}
	public void setTodaySuccedNum(int todaySuccedNum)
	{
		this.todaySuccedNum = todaySuccedNum;
	}
	public int getTodayFailedNum()
	{
		return todayFailedNum;
	}
	public void setTodayFailedNum(int todayFailedNum)
	{
		this.todayFailedNum = todayFailedNum;
	}
	public String getContent()
	{
		return content;
	}
	public void setContent(String content)
	{
		this.content = content;
	}
	public byte getStatus()
	{
		return status;
	}
	public void setStatus(byte status)
	{
		this.status = status;
	}
	public Date getCreateTime()
	{
		return createTime;
	}
	public void setCreateTime(Date createTime)
	{
		this.createTime = createTime;
	}
	public Date getUpdateTime()
	{
		return updateTime;
	}
	public void setUpdateTime(Date updateTime)
	{
		this.updateTime = updateTime;
	}
	public Date getPubTime()
	{
		return pubTime;
	}
	public void setPubTime(Date pubTime)
	{
		this.pubTime = pubTime;
	}
	public Date getSendTime()
	{
		return sendTime;
	}
	public void setSendTime(Date sendTime)
	{
		this.sendTime = sendTime;
	}

	
	
 
	 
	
	 

	 
	 
	
}
